package day03;

public class IfDemo {
    public static void main(String[] args) {
        double price=600;
        if(price>=500) {
            price*=0.5;}
        System.out.println("最终消费额："+price);
        double length=5.79;
        if(length>4.89){
            length*=0.87;
        }
        System.out.println("最终长度:"+length);

        double height=185;
        if(height>150 && height<190){
            System.out.println("This is a legal height:"+height);
        }

        double score = 46;
        if(score<34 || score>89){
            System.out.println("different achievement"+score);
        }
        System.out.println("继续执行....");
    }
}
